<template>
	<div class="one">
	    <h1>One---{{childmsg}}</h1>
		<Coma name="lili" :ageA="age"></Coma>
		<Comb @myEvent="get"></Comb>
	</div>
</template>


<script>
import Coma from "@/components/Coma.vue";
import Comb from "@/components/Comb.vue";

export default {
  name: 'One',
  data(){
	  return{
		age:18,
		childmsg:""
	  }
  },
  methods:{
	  get(val){
		//console.log(val);
		 this.childmsg=val;
	  }
  },
  components:{
	  Coma,
	  Comb
  }
}
</script>

<style>
</style>
